import axios from "../axios";
import { request2 } from "../axios";
var prefix = "/user";
// 登录
export function login(data, loading) {
    return axios({
        url: "/user/login",
        method: "post",
        data: data,
        loading: loading
    });
}
//获取验证码接口
export function sendCode(data, loading) {
    return axios({
        url: "/user/sendCode",
        method: "post",
        data: data,
        loading: loading
    });
}
//忘记更改密码
export function forgetPass(data, loading) {
    return axios({
        url: "/user/updatePwd",
        method: "post",
        data: data,
        loading: loading
    });
}
//注册
export function register(data, loading) {
    return axios({
        url: "/user/register",
        method: "post",
        data: data,
        loading: loading
    });
}
//注册
export function registerNext(data, loading) {
    return axios({
        url: "/member/user/v1/registerNext",
        method: "post",
        data: data,
        loading: loading
    });
}
//更改个人信息
export function changeInfo(data, loading) {
    return axios({
        url: "/user/v1/updateUser",
        method: "post",
        data: data,
        loading: loading
    });
}
//更改密码
export function changePass(data, loading) {
    return axios({
        url: "/user/v1/updatePwd",
        method: "post",
        data: data,
        loading: loading
    });
}
//获取用户信息
export function userInfo(loading) {
    return axios({
        url: "/user/queryUserDetail",
        method: "post",
        loading: loading
    });
}
//检测邮箱是否可用
export function checkEmail(data, loading) {
    return axios({
        url: "/user/checkEmail",
        method: "post",
        data: data,
        loading: loading
    });
}
//检测手机号码是否可用
export function checkPhone(data, loading) {
    return axios({
        url: "/user/checkPhone",
        method: "post",
        data: data,
        loading: loading
    });
}
//更改交易密码
export function updatePayPassword(data, loading) {
    return axios({
        url: "/user/v1/updatePayPassword",
        method: "post",
        data: data,
        loading: loading
    });
}
//获取七牛上传Token
export function qiniuToken(params, loading) {
    return axios({
        url: "/member/common/v1/qiNiuToken",
        method: "get",
        params: params,
        loading: loading
    });
}
//分享信息
export function shareInfo(params, loading) {
    return axios({
        url: "/member/share/sharePosters",
        method: "get",
        params: params,
        loading: loading
    });
}
//设置交易密码
export function setPayPassword(data, loading) {
    return axios({
        url: "/user/v1/updatePayPassword",
        method: "post",
        data: data,
        loading: loading
    });
}
//直接设置交易密码
export function setPayPassword2(data, loading) {
    return axios({
        // url: "/user/v1/updatePayPassword2",
        url: "/wallet/trade/updatePayPassword2",
        method: "post",
        data: data,
        loading: loading
    });
}
//重置交易密码
export function resetPayPassword(data, loading) {
    return axios({
        url: "/user/v1/updatePayPassword",
        method: "post",
        data: data,
        loading: loading
    });
}
//查询会员实名认证
export function authentication(params, loading) {
    return axios({
        url: "/user/v1/idCardInfo",
        method: "get",
        params: params,
        loading: loading
    });
}
//提交会员实名认证
export function postAuthentication(data, loading) {
    return axios({
        url: "/user/v1/commitIdCard",
        method: "post",
        data: data,
        loading: loading
    });
}
//获取银行卡信息
export function getbank(params, loading) {
    return axios({
        url: "/user/v1/userBankInfo",
        method: "get",
        params: params,
        loading: loading
    });
}
//绑定银行卡
export function bindbank(data, loading) {
    return axios({
        url: "/user/v1/saveUserBank",
        method: "post",
        data: data,
        loading: loading
    });
}
//修改银行卡
export function delUserBank(params, loading) {
    return axios({
        url: "/user/v1/delUserBank",
        method: "get",
        params: params,
        loading: loading
    });
}
//修改email
export function cemail(data, loading) {
    return axios({
        url: "/user/v1/updateEmail",
        method: "post",
        data: data,
        loading: loading
    });
}
//选择国籍
export function xzgj(params, loading) {
    return axios({
        url: "/user/v1/countriesList",
        method: "get",
        params: params,
        loading: loading
    });
}
// 修改USDT地址
export function modifyUsdt(data, loading) {
    return axios({
        url: "/post.modify.usdt",
        method: "post",
        data: data,
        loading: loading
    });
}
// 领导等级
export function leaderInfo(params, loading) {
    return axios({
        url: "/ctc/api/v1/leaderInfo",
        method: "get",
        params: params,
        loading: loading
    });
}
// 分红记录
export function bonusRecordPage(data, loading) {
    return axios({
        url: "/ctc/api/v1/bonusRecordPage",
        method: "post",
        data: data,
        loading: loading
    });
}
// 更新日志
export function versionLog(data, loading) {
    return axios({
        url: "/member/user/v1/versionLog",
        method: "post",
        data: data,
        loading: loading
    });
}
// 获取团队人数
export function mebCount(params, loading) {
    return axios({
        url: "/member/user/v1/subordinateCount",
        method: "get",
        params: params,
        loading: loading
    });
}
// 获取团队列表
export function mebList(params, loading) {
    return axios({
        url: "/member/user/v1/subordinateList",
        method: "get",
        params: params,
        loading: loading
    });
}
// 删除账号
export function cancellation(params, loading) {
    return axios({
        url: "/user/v1/cancellation",
        method: "get",
        params: params,
        loading: loading
    });
}
/** 获取用户信息 */ export function getUserInfo() {
    return request2({
        url: "".concat(prefix, "/user/getUserInfo"),
        method: "post"
    });
}
/** 更新用户信息 */ export function updateUserInfo(data) {
    return request2({
        url: "".concat(prefix, "/user/updateUserInfo"),
        method: "post",
        data: data
    });
}
/** 获取邀请人信息 */ export function getMyInviter() {
    return request2({
        url: "".concat(prefix, "/invite/myInviter"),
        method: "post"
    });
}
/** 添加邀请码 */ export function addInviter(code) {
    return request2({
        url: "".concat(prefix, "/invite/addInviter/").concat(code),
        method: "post"
    });
}
/** 邀请列表 */ export function getInviterList(data) {
    return request2({
        url: "".concat(prefix, "/invite/getList"),
        method: "post",
        data: data || {}
    });
}
/** 获取绑定状态 */ export function getBind() {
    return request2({
        url: "".concat(prefix, "/bind/getBind"),
        method: "post"
    });
}

 //# sourceMappingURL=user.js.map